{{ $hrefAttr     := .href }}
{{ $idAttr       := .id }}
{{ $tabindexAttr := .tabindex }}
{{ $strokeAttr   := .stroke }}
{{ $fillAttr     := .fill }}
{{ $xAttr        := .x }}
{{ $yAttr        := .y }}
{{ $widthAttr    := .width }}
{{ $heightAttr   := .height }}

{{ $id       := "" }}
{{ $tabindex := "" }}
{{ $stroke   := "" }}
{{ $fill     := "" }}
{{ $x        := "" }}
{{ $y        := "" }}
{{ $width    := "" }}
{{ $height   := "" }}

{{ $href := printf " href=%s" $hrefAttr | safeHTMLAttr }}
{{ with $idAttr }}
    {{ $id = printf " id=%s" $idAttr | safeHTMLAttr }}
{{ end }}

{{ with $tabindexAttr }}
    {{ $tabindex = printf " tabindex=%s" $tabindexAttr | safeHTMLAttr }}
{{ end }}

{{ with $strokeAttr }}
    {{ $stroke = printf " stroke=%s" $strokeAttr | safeHTMLAttr }}
{{ end }}

{{ with $fillAttr }}
    {{ $fill = printf " fill=%s" $fillAttr | safeHTMLAttr }}
{{ end }}

{{ with $xAttr }}
    {{ $x = printf " x=%s" $xAttr | safeHTMLAttr }}
{{ end }}

{{ with $yAttr }}
    {{ $y = printf " y=%s" $yAttr | safeHTMLAttr }}
{{ end }}

{{ with $widthAttr }}
    {{ $width = printf " width=%s" $widthAttr | safeHTMLAttr }}
{{ end }}

{{ with $heightAttr }}
    {{ $height = printf " height=%s" $heightAttr | safeHTMLAttr }}
{{ end }}


{{ $use := printf "<use%s%s%s%s%s%s%s%s%s></use>" $href $id $tabindex $stroke $fill $x $y $width $height | safeHTML }}
{{ return $use }}